<template>
  <div id="app">
    <!-- 当组件使用 -->
    <Menus v-if="isMenus"></Menus>
    <router-view />
  </div>
</template>
<script>
import Menus from '@/views/layout/components/aside'
export default {
  name: 'App',
  data () {
    return {
      isMenus: true
    }
  },
  watch: {
    $route (to, from) {
      if (['/login'].includes(to.path)) {
        this.isMenus = false
      }
    }
  },
  components: {
    Menus
  }
}
</script>

<style lang="less"></style>
